#include "WindowHandler.h"
#include <iostream>

using namespace std;



WindowHandler *mainWindow = 0;


void display(void){ mainWindow->display();}
void idle(void){ mainWindow->idle();}


int main(int argc, char* argv[])
{
	glutInit(&argc, argv);
	glutInitDisplayMode (GLUT_DOUBLE | GLUT_RGBA | GLUT_DEPTH);

	mainWindow = new WindowHandler();

    mainWindow->init();
    glClearColor(1., 1., 1., 0.);

	glDisable(GL_DEPTH_TEST);

	glutDisplayFunc(display);
	glutIdleFunc(idle);
	glutMainLoop();

    delete mainWindow;

	return 0;
}

